group_name = {
  ["01 - DDR 1st"] = "01 - DDR 1st";
  ["02 - DDR 2ndMIX"] = "02 - DDR 2ndMIX";
  ["03 - DDR 3rdMIX"] = "03 - DDR 3rdMIX";
  ["04 - DDR 4thMIX"] = "04 - DDR 4thMIX";
  ["05 - DDR 5thMIX"] = "05 - DDR 5thMIX";
  ["06 - DDR MAX"] = "06 - DDR MAX";
  ["07 - DDR MAX2"] = "07 - DDR MAX2";
  ["08 - DDR EXTREME"] = "08 - DDR EXTREME";
  ["09 - DDR SuperNOVA"] = "09 - DDR SuperNOVA";
  ["10 - DDR SuperNOVA2"] = "10 - DDR SuperNOVA2";
  ["11 - DDR X"] = "11 - DDR X";
  ["12 - DDR X2"] = "12 - DDR X2";
  ["13 - DDR X3 vs 2ndMIX"] = "13 - DDR X3 vs 2ndMIX";
  ["14 - DDR 2013"] = "14 - DDR 2013";
  ["15 - DDR 2014"] = "15 - DDR 2014";
  ["16 - DDR A"] = "16 - DDR A";
  ["17 - DDR A20"] = "17 - DDR A20";
  ["18 - DDR SuperNOVA3"] = "18 - DDR SuperNOVA3";
  ["19 - DDR XX"] = "19 - DDR XX";

  --ABC
  ["0-9"] = "0-9";
  ["A"] = "A";
  ["B"] = "B";
  ["C"] = "C";
  ["D"] = "D";
  ["E"] = "E";
  ["F"] = "F";
  ["G"] = "G";
  ["H"] = "H";
  ["I"] = "I";
  ["J"] = "J";
  ["K"] = "H";
  ["L"] = "L";
  ["M"] = "M";
  ["N"] = "N";
  ["O"] = "O";
  ["P"] = "P";
  ["Q"] = "Q";
  ["R"] = "R";
  ["S"] = "S";
  ["T"] = "T";
  ["U"] = "U";
  ["V"] = "V";
  ["W"] = "W";
  ["X"] = "X";
  ["Y"] = "Y";
  ["Z"] = "Z";
  ["Other"] = "NA";

  --bpm
  ["000-019"] = "000";
  ["020-039"] = "020";
  ["040-059"] = "040";
  ["060-079"] = "060";
  ["080-099"] = "080";
  ["100-119"] = "100";
  ["120-139"] = "120";
  ["140-159"] = "140";
  ["160-179"] = "160";
  ["180-199"] = "180";
  ["200-219"] = "200";
  ["220-239"] = "220";
  ["240-259"] = "240";
  ["260-279"] = "260";
  ["280-299"] = "280";
  ["300-319"] = "300";
  ["320-339"] = "320";
  ["340-359"] = "340";
  ["360-379"] = "360";
  ["380-399"] = "380";
  ["400-419"] = "400";
  ["420-439"] = "420";
  ["440-459"] = "440";
  ["460-479"] = "460";
  ["480-499"] = "480";
  ["500-519"] = "500";
  ["520-539"] = "520";
  ["540-559"] = "540";
  ["560-579"] = "560";
  ["580-599"] = "580";
  ["600-619"] = "600";
  ["620-639"] = "620";
  ["640-659"] = "640";
  ["660-679"] = "660";
  ["680-699"] = "680";
  ["700-719"] = "700";
  ["720-739"] = "720";
  ["740-759"] = "740";
  ["760-779"] = "760";
  ["780-799"] = "780";
  ["800-819"] = "800";
  ["820-839"] = "820";
  ["840-859"] = "840";
  ["860-879"] = "860";
  ["880-899"] = "880";
  ["900-919"] = "900";
  ["920-939"] = "920";
  ["940-959"] = "940";
  ["960-979"] = "960";
  ["980-999"] = "980";
  ["1000-1019"] = "a1000";

  --Meter
  ["01"] = "01";
  ["02"] = "02";
  ["03"] = "03";
  ["04"] = "04";
  ["05"] = "05";
  ["06"] = "06";
  ["07"] = "07";
  ["08"] = "08";
  ["09"] = "09";
  ["10"] = "10";
  ["11"] = "11";
  ["12"] = "12";
  ["13"] = "13";
  ["14"] = "14";
  ["15"] = "15";
  ["16"] = "16";
  ["17"] = "17";
  ["18"] = "18";
  ["19"] = "19";
  ["20"] = "20";
  ["N/A"] = "NA";

  --Grade
  ["   D x 9"] = "D";
  ["   D x 8"] = "D";
  ["   D x 7"] = "D";
  ["   D x 6"] = "D";
  ["   D x 5"] = "D";
  ["   D x 4"] = "D";
  ["   D x 3"] = "D";
  ["   D x 2"] = "D";
  ["   D x 1"] = "D";
  ["   C x 9"] = "C";
  ["   C x 8"] = "C";
  ["   C x 7"] = "C";
  ["   C x 6"] = "C";
  ["   C x 5"] = "C";
  ["   C x 4"] = "C";
  ["   C x 3"] = "C";
  ["   C x 2"] = "C";
  ["   C x 1"] = "C";
  ["   B x 9"] = "B";
  ["   B x 8"] = "B";
  ["   B x 7"] = "B";
  ["   B x 6"] = "B";
  ["   B x 5"] = "B";
  ["   B x 4"] = "B";
  ["   B x 3"] = "B";
  ["   B x 2"] = "B";
  ["   B x 1"] = "B";
  ["   A x 9"] = "A";
  ["   A x 8"] = "A";
  ["   A x 7"] = "A";
  ["   A x 6"] = "A";
  ["   A x 5"] = "A";
  ["   A x 4"] = "A";
  ["   A x 3"] = "A";
  ["   A x 2"] = "A";
  ["   A x 1"] = "A";
  ["  AA x 9"] = "2A";
  ["  AA x 8"] = "2A";
  ["  AA x 7"] = "2A";
  ["  AA x 6"] = "2A";
  ["  AA x 5"] = "2A";
  ["  AA x 4"] = "2A";
  ["  AA x 3"] = "2A";
  ["  AA x 2"] = "2A";
  ["  AA x 1"] = "2A";
  [" AAA x 9"] = "3A";
  [" AAA x 8"] = "3A";
  [" AAA x 7"] = "3A";
  [" AAA x 6"] = "3A";
  [" AAA x 5"] = "3A";
  [" AAA x 4"] = "3A";
  [" AAA x 3"] = "3A";
  [" AAA x 2"] = "3A";
  [" AAA x 1"] = "3A";
  ["AAAA x 9"] = "3A";
  ["AAAA x 8"] = "3A";
  ["AAAA x 7"] = "3A";
  ["AAAA x 6"] = "3A";
  ["AAAA x 5"] = "3A";
  ["AAAA x 4"] = "3A";
  ["AAAA x 3"] = "3A";
  ["AAAA x 2"] = "3A";
  ["AAAA x 1"] = "3A";

  --Genre
  ["POP"] = "Pop";
  ["UMU"] = "UMU";
  ["VARIETY"] = "Variety";
  ["NA"] = "NA";
};

group_color = {
  ["01 - DDR 1st"] = "Blue";
  ["02 - DDR 2ndMIX"] = "Pink";
  ["03 - DDR 3rdMIX"] = "Blue";
  ["04 - DDR 4thMIX"] = "Blue";
  ["05 - DDR 5thMIX"] = "Green";
  ["06 - DDR MAX"] = "Blue";
  ["07 - DDR MAX2"] = "Red";
  ["08 - DDR EXTREME"] = "Green";
  ["09 - DDR SuperNOVA"] = "Red";
  ["10 - DDR SuperNOVA2"] = "Blue";
  ["11 - DDR X"] = "Pink";
  ["12 - DDR X2"] = "Green";
  ["13 - DDR X3 vs 2ndMIX"] = "Blue";
  ["14 - DDR 2013"] = "Cyan";
  ["15 - DDR 2014"] = "Cyan";
  ["16 - DDR A"] = "Blue";
  ["17 - DDR A20"] = "Red";
  ["18 - DDR SuperNOVA3"] = "Green";
  ["19 - DDR XX"] = "Purple";

  --ABC
  ["0-9"] = "Red";
  ["A"] = "Pink";
  ["B"] = "Red";
  ["C"] = "Green";
  ["D"] = "Cyan";
  ["E"] = "Purple";
  ["F"] = "Blue";
  ["G"] = "Pink";
  ["H"] = "Red";
  ["I"] = "Green";
  ["J"] = "Cyan";
  ["K"] = "Purple";
  ["L"] = "Blue";
  ["M"] = "Pink";
  ["N"] = "Red";
  ["O"] = "Green";
  ["P"] = "Cyan";
  ["Q"] = "Purple";
  ["R"] = "Blue";
  ["S"] = "Pink";
  ["T"] = "Red";
  ["U"] = "Green";
  ["V"] = "Cyan";
  ["W"] = "Purple";
  ["X"] = "Blue";
  ["Y"] = "Pink";
  ["Z"] = "Red";
  ["Other"] = "Red";

  --Meter
  ["01"] = "01";
  ["02"] = "02";
  ["03"] = "03";
  ["04"] = "04";
  ["05"] = "05";
  ["06"] = "06";
  ["07"] = "07";
  ["08"] = "08";
  ["09"] = "09";
  ["10"] = "10";
  ["11"] = "11";
  ["12"] = "12";
  ["13"] = "13";
  ["14"] = "14";
  ["15"] = "15";
  ["16"] = "16";
  ["17"] = "17";
  ["18"] = "18";
  ["19"] = "19";
  ["20"] = "20";
  ["N/A"] = "NA";

};

group_rename = {
  ["01 - DDR 1st"] = "DDR 1st";
  ["02 - DDR 2ndMIX"] = "DDR 2ndMIX";
  ["03 - DDR 3rdMIX"] = "DDR 3rdMIX";
  ["04 - DDR 4thMIX"] = "DDR 4thMIX";
  ["05 - DDR 5thMIX"] = "DDR 5thMIX";
  ["06 - DDR MAX"] = "DDRMAX";
  ["07 - DDR MAX2"] = "DDRMAX2";
  ["08 - DDR EXTREME"] = "DDR EXTREME";
  ["09 - DDR SuperNOVA"] = "DDR SuperNOVA";
  ["10 - DDR SuperNOVA2"] = "DDR SuperNOVA2";
  ["11 - DDR X"] = "DDR X";
  ["12 - DDR X2"] = "DDR X2";
  ["13 - DDR X3 vs 2ndMIX"] = "DDR X3 vs 2ndMIX";
  ["14 - DDR 2013"] = "DDR 2013";
  ["15 - DDR 2014"] = "DDR 2014";
  ["16 - DDR A"] = "DDR A";
  ["17 - DDR A20"] = "DDR A20";
  ["18 - DDR SuperNOVA3"] = "DDR SuperNOVA3";
  ["19 - DDR XX"] = "DDR XX";

  ["0-9"] = "0-9";
  ["A"] = "A";
  ["B"] = "B";
  ["C"] = "C";
  ["D"] = "D";
  ["E"] = "E";
  ["F"] = "F";
  ["G"] = "G";
  ["H"] = "H";
  ["I"] = "I";
  ["J"] = "J";
  ["K"] = "H";
  ["L"] = "L";
  ["M"] = "M";
  ["N"] = "N";
  ["O"] = "O";
  ["P"] = "P";
  ["Q"] = "Q";
  ["R"] = "R";
  ["S"] = "S";
  ["T"] = "T";
  ["U"] = "U";
  ["V"] = "V";
  ["W"] = "W";
  ["X"] = "X";
  ["Y"] = "Y";
  ["Z"] = "Z";
  ["Other"] = "Misc.";

  --Meter
  ["01"] = "01";
  ["02"] = "02";
  ["03"] = "03";
  ["04"] = "04";
  ["05"] = "05";
  ["06"] = "06";
  ["07"] = "07";
  ["08"] = "08";
  ["09"] = "09";
  ["10"] = "10";
  ["11"] = "11";
  ["12"] = "12";
  ["13"] = "13";
  ["14"] = "14";
  ["15"] = "15";
  ["16"] = "16";
  ["17"] = "17";
  ["18"] = "18";
  ["19"] = "19";
  ["20"] = "20";
  ["N/A"] = "N/A";
};

color_group= {
	["01 - DDR 1st"]= "#00f07d",
	["02 - DDR 2ndMIX"]= "#fff1dd",
	["03 - DDR 3rdMIX"]= "#ff9f39",
	["04 - DDR 4thMIX"]= "#5dc4ff",
	["05 - DDR 5thMIX"]= "#427eff",
	["06 - DDR MAX"]= "#ff9f39",
	["07 - DDR MAX2"]= "#ff6022",
	["08 - DDR EXTREME"]= "#42d200",
	["09 - DDR SuperNOVA"]= "#ff2222",
	["10 - DDR SuperNOVA2"]= "#12cff2",
	["11 - DDR X"]= "#ffbe32",
	["12 - DDR X2"]= "#00f07d",
	["13 - DDR X3 vs 2ndMIX"]= "#5dc4ff",
	["14 - DDR 2013"]= "#69ebca",
	["15 - DDR 2014"]= "#69ebca",
  ["16 - DDR A"]= "#427eff",
  ["17 - DDR A20"]= "#ffc600",
  ["18 - DDR SuperNOVA3"]= "#42d200",
  ["19 - DDR XX"]= "#16b5ef",
	-- genre/bemani series sort
	["Pop"]= "#ffbe32",
	["Anime/Game"]=	"#fff582",
	["Variety"]= "#eb8cc8",
	["GUMI 5th anniversary"]=	"#b8e267",
	["U.M.U. x BEMANI"]= "#fbafb4",
	["KONAMI originals"]= "#fa4b3c",

};
